<template>
	<!-- 	<view class="min-goods" @tap="jump('/pages/activity/GroupDetails/index', { id: detail.id })"> -->
	<view class="min-goods min-gai" @tap="$yrouter.push({ path: '/pages/shop/GoodsCon/index', query: { id: detail.id } })" style="background: #fff;">
		<view class="img-box" style="background: #fff;">
			<view class="tese-e">
				<view class="tese-r">
					<image class="img" :src="detail.image" mode="widthFix">
				</view>
				<view class="tese-t"></view>
				<view class="tese-y" :style="{width:widthout +'%'}"></view>
				<view class="tese-yy">已抢60%</view>
			</view>
			<view class="tese-e">
				<view class="tese-r">
					<image class="img" :src="detail.image" mode="widthFix">
				</view>
				<view class="tese-t"></view>
				<view class="tese-y" :style="{width:widthout +'%'}"></view>
				<view class="tese-yy">已抢60%</view>
			</view>
			<view class="tese-e">
				<view class="tese-r">
					<image class="img" :src="detail.image" mode="widthFix">
				</view>
				<view class="tese-t"></view>
				<view class="tese-y" :style="{width:widthout +'%'}"></view>
				<view class="tese-yy">已抢60%</view>
			</view>
		</view>
		<!-- <view class="price-box" style="background: #fff;">
			<view class="y-f" style="background: #fff;">
				<text class="seckill-current">￥{{  detail.price  }}</text>
				<text class="original">销量{{ detail.sales }}{{detail.unitName}}</text>
				<image class="img" :src="detail.image" mode="widthFix">
			</view>
		</view> -->
		<!-- <view class="title"><slot name="titleText"></slot></view> -->
	</view>
</template>

<script>
export default {
	components: {},
	data() {
		return {
			widthout:20
		};
	},
	props: {
		detail: Object
	},
	computed: {},
	methods: {
		// 路由跳转
		jump(path, query) {
			this.$yrouter.push({
				path,
				query
			});
		}
	}
};
</script>

<style lang="scss">
.min-goods {
	width: 670rpx;
	height: 242rpx;
	margin-top: 24rpx;
	border-radius: 15rpx;
	.img-box {
		width: 100%;
		display: flex;
		justify-content: space-between;
		height: auto;
		.tese-e {
			.tese-r{
				width: 170rpx;
				height: 137rpx;
				margin-left: 16rpx;
				margin-right: 16rpx;
				margin-top: 23rpx;
				.img {
					width: 100%;
					height: 100%;
				}
			}
			.tese-t{
				width: 170rpx;
				height: 23rpx;
				background: #CCCCCC;
				border-radius: 12px;
				margin-left: 16rpx;
				margin-top: 23rpx;
				position: relative;
				z-index: 1;
			}
			.tese-y{
				position: absolute;
				height: 23rpx;
				background: red;
				border-radius: 12px;
				margin-left: 16rpx;
				z-index: 2;
				top: 180rpx;
				
			}
			.tese-yy{
				position: absolute;
				height: 23rpx;
				border-radius: 12px;
				margin-left: 20rpx;
				z-index: 3;
				top: 169rpx;
				font-size: 20rpx;
				font-family: PingFang SC;
				font-weight: 400;
				color: #FFFFFF;
				line-height: 23px;
			}
		}
	}
}
</style>
